#pragma region Include
#include <windows.h>

#include "debug.h"

#include "other.h"
#pragma endregion Include

int str_len(const char *buf)
{
	int count = 0;

	while(buf[count] != '\0')
		count++;
	
	return count;
}

char *make_content_type_str(char *dst, unsigned int size, const char* mime_type, const char* charset_code)
{
	if(dst == NULL)
		return 0;
	
	memset(dst, 0, size);

	strcpy(dst, mime_type);
	strcat(dst, "; ");
	strcat(dst, charset_code);

	return dst;
}